﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Mukhopatro.BusinessLogicLayer;
using Mukhopatro.BusinessEntities;

namespace Mukhopatro.Controls
{
    public partial class wucFooter : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            CustomerSettingBLL bll = new CustomerSettingBLL();
            CustomerSetting settings = bll.GetCustomerSettings(SessionManager.CustomerId);
            if (settings != null)
            {
                litAddress.Text = string.Format("{0}<br /><strong>{1}</strong><br />{2}<br/>{3}-{4}, {5}", settings.CompanyPhone, settings.CompanyEmail, settings.CompanyAddress,settings.CompanyCity,settings.CompanyZip,settings.CompanyCountry);
               
            }
        }
    }
}